package lab02.test19;

/**
 * Created by 123 on 2017/12/29.
 */
public class Test19 {
    public static void main(String[] args) {
        String result = "HelloWord";

        //大小写转换

        for (int i = 0; i < result.length(); i++) {
            char tmp = result.charAt(i);
            if (tmp >= 'A' && tmp <= 'Z') {
                System.out.print((char) (tmp + 32));
            } else if (tmp >= 'a' && tmp <= 'z') {
                System.out.print((char) (tmp - 32));
            }
        }

    }
}
